using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Entities;
using BUS;

public partial class slide_Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (!IsPostBack)
        //    LoadData();
        //LoadData_dulieu();
    }

    //private void LoadData()
    //{
    //    tbHinhAnhEntities.tbHinhAnhEntitiesCollection ha_collection= tbHinhAnhBUS.GetByIDSP(3);
    //    Repeater1.DataSource = ha_collection;
    //    Repeater2.DataSource = ha_collection;

    //    Repeater1.DataBind();
    //    Repeater2.DataBind();
    //}
    //private void LoadData_dulieu()
    //{
    //    //int id = int.Parse(Request.QueryString["id"].ToString());
    //    tbHinhAnh.tbHinhAnhCollections ha_collection = tbHinhAnhBUS.GetByIDSP(3);
    //    tbSanPham sanpham = tbSanPhamBUS.GetByID(3);
    //    if (sanpham != null)
    //    {
    //        lit_IDSP.Text = sanpham.IDSP.ToString ();
    //        lit_TenSP.Text = sanpham.TenSP;
            
    //        lit_dksd.Text = sanpham.DKSuDung;
    //        lit_giaban.Text = sanpham.GiaBan.ToString();
    //        lit_gt_thuc.Text = sanpham.GiaTriThuc.ToString();
    //        lit_mota_sp.Text = sanpham.MoTaSP;
    //        lit_sl_ban.Text = sanpham.SLBan.ToString();
    //        lit_sl_daban.Text = sanpham.SLDaBan.ToString();
    //        tbDiaDiem diadiem = tbDiaDiemBUS.GetByID(sanpham.IDDD);
    //        if (diadiem != null)
    //        {
    //            lit_dd.Text = diadiem.DiaDiem.ToString();
    //        }
    //        tbLoaiSP loai = tbLoaiSPBUS.GetByID(sanpham.IDL);
    //        if (loai != null)
    //        {
    //            lit_loai.Text = loai.TenLoai.ToString();
    //        }

    //        tbTrangThaiSP tt_sp = tbTrangThaiSPBUS.GetByID(sanpham.IDTrangThaiSP);
    //        if (tt_sp != null)
    //        {
    //            lit_trang_thai.Text = tt_sp.TrangThai.ToString();
    //        }
    //    }
    //}
}
